package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

@Data
// 表名
@TableName("ve_oa_car_info")
// 返回值变成对象
@Accessors(chain = true)
// 重写toString
@EqualsAndHashCode(callSuper = false)
public class VeOaCarInfoEntity {
    /**id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;

    //车辆名称
    @Excel(name = "车辆名称", width = 15)
    @ApiModelProperty(value = "车辆名称")
    @TableField(value = "car_name")
    private String carName;

    //车牌号
    @Excel(name = "车牌号", width = 15)
    @ApiModelProperty(value = "车牌号")
    @TableField(value = "car_paihao")
    private String carPaihao;

    //厂牌型号
    @Excel(name = "厂牌型号", width = 15)
    @ApiModelProperty(value = "厂牌型号")
    @TableField(value = "car_xinghao")
    private String carXinghao;

    //车辆类型
    @Excel(name = "车辆类型", width = 15)
    @ApiModelProperty(value = "车辆类型")
    @TableField(value = "leixing")
    private String leixing;

    //所属部门
    @Excel(name = "所属部门", width = 15)
    @ApiModelProperty(value = "所属部门")
    @TableField(value = "suoshu_dep")
    private String suoshuDep;

    //司机
    @Excel(name = "司机", width = 15)
    @ApiModelProperty(value = "司机")
    @TableField(value = "driver_user")
    private String driverUser;

    //车辆状态
    @Excel(name = "车辆状态", width = 15)
    @ApiModelProperty(value = "车辆状态")
    @TableField(value = "now_status")
    private String nowStatus;

    //附件id
    @Excel(name = "附件id", width = 15)
    @ApiModelProperty(value = "附件id")
    @TableField(value = "file_id")
    private Long fileId;

    //备注说明
    @Excel(name = "备注说明", width = 15)
    @ApiModelProperty(value = "备注说明")
    @TableField(value = "back_info")
    private String backInfo;

    //提醒内容
    @Excel(name = "提醒内容", width = 15)
    @ApiModelProperty(value = "提醒内容")
    @TableField(value = "tixing_content")
    private String tixingContent;

    //提醒日期
    @Excel(name = "提醒日期", width = 15)
    @ApiModelProperty(value = "提醒日期")
    @TableField(value = "tixing_date")
    private Date tixingDate;

    //提醒人
    @Excel(name = "提醒人", width = 15)
    @ApiModelProperty(value = "提醒人")
    @TableField(value = "tixing_user")
    private String tixingUser;

    //创建时间
    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //创建人
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    //修改时间
    @Excel(name = "修改时间", width = 15)
    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //更新人
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by")
    private String updateBy;

    //逻辑删除
    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;


    //终端id
    @Excel(name = "终端id", width = 15)
    @ApiModelProperty(value = "终端id")
    @TableField(value = "terminalId")
    private Integer terminalId;


    //创建人姓名
    @Excel(name = "创建人姓名", width = 15)
    @ApiModelProperty(value = "创建人姓名")
    @TableField(value = "create_by_name")
    private String createByName;

    //更新人姓名
    @Excel(name = "更新人姓名", width = 15)
    @ApiModelProperty(value = "更新人姓名")
    @TableField(value = "update_by_name")
    private String updateByName;
}
